package cn.itsource.ymcc.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author whale
 * @since 2021-10-04
 */
@TableName("t_user_account")
@Data
public class UserAccount extends Model<UserAccount> {

    private static final long serialVersionUID = 1L;

    private Long id;
    @TableField("usable_amount")
    private BigDecimal usableAmount = new BigDecimal("0.00");
    @TableField("frozen_amount")
    private BigDecimal frozenAmount = new BigDecimal("0.00");;
    @TableField("create_time")
    private Date createTime = new Date();
    @TableField("update_time")
    private Date updateTime;
    /**
     * 支付密码
     */
    private String password;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
